import Vue from 'vue'
import VueRouter from 'vue-router'
import IndexPage from '@/views/Index'
import Competition from '@/views/Competition'
import Project from '@/views/Project'

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'indexPage',
    component: IndexPage
  },
  {
    path: '/competition',
    name: 'competitionPage',
    component: Competition
  },
  {
    path: '/project',
    name: 'projectPage',
    component: Project
  }
];

const router = new VueRouter({
  routes
});

export default router
